#ifndef _PARSE_HTTP_H
#define _PARSE_HTTP_H

#include <string>
#include <vector>

enum EEncodingType
{
ENCODING_TYPE_UNKNOWN = -1,
ENCODING_TYPE_UTF8 = 0,
ENCODING_TYPE_GB2312 = 1,
//ENCODING_TYPE_GBK,
ENCODING_TYPE_MAX
};

std::vector<std::string> getNewsContent(std::string strHtml);

std::string getTitle(const std::string& strHtml);

std::string getPerfectTitle(const std::string& strBaseTitle);

std::string getTime( const std::string& strHtml, const std::string& strTitle);

EEncodingType getEncodingType(const std::string& strHtml);

#endif


